﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FlexiCommerce
{
    public class FlexiException : ApplicationException
    {
        /// <summary>Creates a new instance of the N2Exception, the base class for known N2 exceptions.</summary>
        /// <param name="message">The exception message</param>
        public FlexiException(string message)
            : base(message)
        {
        }

        /// <summary>Creates a new instance of the N2Exception, the base class for known N2 exceptions.</summary>
        /// <param name="messageFormat">The exception message format.</param>
        /// <param name="args">The exception message arguments.</param>
        public FlexiException(string messageFormat, params object[] args)
            : base(string.Format(messageFormat, args))
        {
        }

        /// <summary>Creates a new instance of the N2Exception that encapsulates an underlying exception.</summary>
        /// <param name="message">The exception message.</param>
        /// <param name="innerException">The underlying exception.</param>
        public FlexiException(string message, Exception innerException)
            : base(message, innerException)
        {
        }
    }
}
